package com.eshore.norm.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 宿主机监控
 * </p>
 *
 * @author chenjl
 * @since 2024-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class NormHypervisorHost implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 资源池id
     */
    @ApiModelProperty(value = "资源池id")
    private Long configId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateDate;

    /**
     * CPU总量
     */
    @ApiModelProperty(value = "CPU总量")
    private Long cpu;

    /**
     * CPU利用率
     */
    @ApiModelProperty(value = "CPU利用率")
    private Double cpuRatio;

    /**
     * 内存总量（G）
     */
    @ApiModelProperty(value = "内存总量")
    private Long memory;

    /**
     * 内存利用率
     */
    @ApiModelProperty(value = "内存利用率")
    private Double memoryRatio;

    /**
     * 磁盘总量（G）
     */
    @ApiModelProperty(value = "磁盘总量")
    @TableField("STORAGE")
    private Long storage;

    /**
     * 磁盘利用率
     */
    @ApiModelProperty(value = "磁盘利用率")
    private Double storageRatio;

    /**
     * 虚机总数
     */
    @ApiModelProperty(value = "虚机总数")
    private Long vmCount;

    /**
     * 运行虚机数
     */
    @ApiModelProperty(value = "运行虚机数")
    private Long runningCount;

    /**
     * 宿主机名称
     */
    @ApiModelProperty(value = "宿主机名称")
    private String hostname;

    /**
     * 宿主机uuid
     */
    @ApiModelProperty(value = "宿主机uuid")
    private String uuid;


}
